package Vista;
import java.awt.BorderLayout;
import java.awt.HeadlessException;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JTextField;
import javax.swing.SpinnerListModel;

/**
 * This code was edited or generated using CloudGarden's Jigloo
 * SWT/Swing GUI Builder, which is free for non-commercial
 * use. If Jigloo is being used commercially (ie, by a corporation,
 * company or business for any purpose whatever) then you
 * should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details.
 * Use of Jigloo implies acceptance of these licensing terms.
 * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
 * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
 * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class VUmpire extends javax.swing.JFrame {
	private JPanel jPanelUmpire;
	private JLabel jLabelUmpire;
	private JLabel jLabelCedula;
	private JLabel jLabelApellido;
	private JButton jButtonBorrar;
	private JButton jButtonGuardar;
	private JTextField jTextFieldApellido;
	private JTextField jTextFieldNombre;
	private JLabel jLabelNombre;
	private JLabel jLabelFechaNac;
	private JTextField jTextFieldFechaNac;
	private JTextField jTextFieldCedula;


	public VUmpire(){
		super();
		this.initGUI();
		// TODO Auto-generated constructor stub
	}

	private void initGUI() {
		try {
			{
				jPanelUmpire = new JPanel();
				getContentPane().add(jPanelUmpire, BorderLayout.CENTER);
				jPanelUmpire.setLayout(null);
				{
					jLabelUmpire = new JLabel();
					jPanelUmpire.add(jLabelUmpire);
					jLabelUmpire.setText("Datos del Umpire");
					jLabelUmpire.setBounds(167, 48, 324, 35);
					jLabelUmpire.setFont(new java.awt.Font("Cooper Black",0,36));
					jPanelUmpire.setBackground(new java.awt.Color(130,200,250));
					jLabelUmpire.setAlignmentX(CENTER_ALIGNMENT);
				}
				{
					jTextFieldCedula = new JTextField();
					jPanelUmpire.add(jTextFieldCedula);
					jTextFieldCedula.setBounds(123, 144, 148, 23);
				}
				{
					jTextFieldFechaNac = new JTextField();
					jPanelUmpire.add(jTextFieldFechaNac);
					jTextFieldFechaNac.setBounds(474, 141, 127, 24);
				}
				{
					jLabelFechaNac = new JLabel();
					jPanelUmpire.add(jLabelFechaNac);
					jLabelFechaNac.setText("Fecha Nacimiento:");
					jLabelFechaNac.setBounds(315, 144, 226, 21);
					jLabelFechaNac.setFont(new java.awt.Font("Cooper Black",0,16));
				}
				{
					jLabelNombre = new JLabel();
					jPanelUmpire.add(jLabelNombre);
					jLabelNombre.setText("Nombre:");
					jLabelNombre.setBounds(46, 209, 135, 16);
					jLabelNombre.setFont(new java.awt.Font("Cooper Black",0,16));
				}
				{
					jTextFieldNombre = new JTextField();
					jPanelUmpire.add(jTextFieldNombre);
					jTextFieldNombre.setBounds(123, 207, 148, 23);
				}
				{
					jLabelApellido = new JLabel();
					jPanelUmpire.add(jLabelApellido);
					jLabelApellido.setText("Apellido:");
					jLabelApellido.setBounds(329, 209, 161, 16);
					jLabelApellido.setFont(new java.awt.Font("Cooper Black",0,16));
				}
				{
					jTextFieldApellido = new JTextField();
					jPanelUmpire.add(jTextFieldApellido);
					jTextFieldApellido.setBounds(441, 207, 159, 23);
				}
				{
					jButtonGuardar = new JButton();
					jPanelUmpire.add(jButtonGuardar);
					jButtonGuardar.setText("Guardar");
					jButtonGuardar.setBounds(155, 292, 119, 31);
					jButtonGuardar.setFont(new java.awt.Font("Cooper Black",0,16));
				}
				{
					jButtonBorrar = new JButton();
					jPanelUmpire.add(jButtonBorrar);
					jButtonBorrar.setText("Borrar");
					jButtonBorrar.setBounds(372, 292, 113, 31);
					jButtonBorrar.setFont(new java.awt.Font("Cooper Black",0,16));
				}
				{
					jLabelCedula = new JLabel();
					jPanelUmpire.add(jLabelCedula);
					jLabelCedula.setText("Cedula:");
					jLabelCedula.setBounds(51, 146, 108, 16);
					jLabelCedula.setFont(new java.awt.Font("Cooper Black",0,16));
				}
			}
			{
				this.setSize(699, 405);
			}
		} catch(Exception e) {
			System.out.println("Error...!");
			e.printStackTrace();
		}
	} // Fin InitGUI 

	public void addListener(ActionListener escuchador){
		jButtonGuardar.addActionListener(escuchador);
		jButtonBorrar.addActionListener(escuchador);
	}

	public void limpiar(){
		jTextFieldCedula.setText("");
		jTextFieldFechaNac.setText("");
		jTextFieldNombre.setText("");
		jTextFieldApellido.setText("");	
	}

	public JTextField getJTextFieldApellido() {
		return jTextFieldApellido;
	}

	public void setJTextFieldApellido(JTextField textFieldApellido) {
		this.jTextFieldApellido = textFieldApellido;
	}

	public JTextField getJTextFieldNombre() {
		return jTextFieldNombre;
	}

	public void setJTextFieldNombre(JTextField textFieldNombre) {
		this.jTextFieldNombre = textFieldNombre;
	}

	public JTextField getJTextFieldFechaNac() {
		return jTextFieldFechaNac;
	}

	public void setJTextFieldFechaNac(JTextField textFieldFechaNac) {
		this.jTextFieldFechaNac = textFieldFechaNac;
	}

	public JTextField getJTextFieldCedula() {
		return jTextFieldCedula;
	}

	public void setJTextFieldCedula(JTextField textFieldCedula) {
		jTextFieldCedula = textFieldCedula;
	}



} // Fin VUmpire
